Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

lesshint

Package Overview
Dependencies
Maintainers
1
Versions
91
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lesshint

A tool to aid you in writing clean and consistent Less.

  • 0.5.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
7.3K
increased by8.84%
Maintainers
1
Weekly downloads
 
Created
Source

lesshint

Build Status Windows CI Dependency Status devDependency Status

lesshint is a tool to aid you in writing clean and consistent Less.

Important information

This is the final project for a associate degree, because of this pull requests cannot be accepted until mid-June 2015.

However, I (jwilsson) will need your help to decide which options that should be available for each linter and which option that should be the default value. For each linter that I add, I'll open a corresponding issue where a discussion/vote will take place for which options that should be included and which one should be the default. Therefore, I highly recommend users of this tool to not trust the defaults until a 1.0 release since some default values will change. In short, be extremely specific about which options you specify, don't trust the defaults just yet.

Please feel free to submit bug reports and other forms of feedback. That's greatly appreciated!

Requirements

Node.js 0.10 (or later) or io.js 1.0 (or later).

Installation

Run the following command from the command line (add -g to install globally):

npm install lesshint

Configuration

lesshint is customizable and we highly recommend you to look at the available options to tailor it to your needs.

Start by creating a .lesshintrc file in your project root and add your settings to it. It will be automatically loaded and merged with the default values.

Each option is then specifed by it's own JSON object, for example:

"spaceAfterPropertyColon": {
    "enabled": true,
    "style": "one_space" // Comments are allowed
}

If you're running lesshint from the command line, the -c or --config flags can be used to load any valid configuration file.

Known issues

We are aware of some instances where some Less features won't be properly parsed. In those cases the whole file will simply be ignored by lesshint.

  • Not all forms of :extend() rules are supported. Related issue.
  • Using variables in @media directives are not supported. Related issue.
  • Passing Rulesets to Mixins, i.e. detached rulesets are not supported. Related issue.

Keywords

FAQs

Package last updated on 19 May 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc